package com.hnjd.headline.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serial;

/**
 * (news_user)实体类
 *
 * @author kancy
 * @since 2025-06-16 15:53:03
 * @description 由 Mybatisplus Code Generator 创建
 */
@Data
@EqualsAndHashCode(callSuper=false)
@NoArgsConstructor
@Accessors(chain = true)
@TableName("news_user")
public class User extends Model<User> {
    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 用户id
     */
    @TableId(type = IdType.AUTO)
	private Integer uid;
    /**
     * 用户登录名
     */
    private String username;
    /**
     * 用户登录密码密文
     */
    private String userPwd;
    /**
     * 用户昵称
     */
    private String nickName;
    /**
     * 乐观锁
     */
    @Version
    private Integer version;

}